package cn.dapeng.thread.delayedQueue;

/**
 * @BelongProject study
 * @BelongPackage cn.dapeng.thread.delayedQueue
 * @Description TODO
 * @ClassName MyQueue
 * @Author xupenghong
 * @Date 2024/8/28 14:10
 * @Version 1.0.0
 */
public interface MyQueue<E> {

    boolean add(E e) throws Exception;

    E take() throws Exception;

    E peek();

    void clear();

    boolean isEmpty();

    int getSize();
}
